// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'

//import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import { Form, Field, CellGroup, Button, Icon, Col, Row, Divider, Toast, DatetimePicker, Popup, Picker, NumberKeyboard, Dialog, Checkbox, CheckboxGroup, Notify } from 'vant'

// import Vant from 'vant'

// 引入axios，并加到原型链中
import axios from 'axios'
import QS from 'qs'

// 饿了么移动端UI
//import MintUI from 'mint-ui' // 加这一行
import 'mint-ui/lib/style.css' // 和加这一行
import FastClick from 'fastclick'

FastClick.attach(document.body);

//Vue.use(MintUI) // 还有加这一行

//Vue.use(ElementUI);

// 引入axios，并加到原型链中
Vue.prototype.$axios = axios
Vue.prototype.qs = QS


// 全局注册vant组件
// Vue.use(Vant)
Vue.use(Form)
Vue.use(Field)
Vue.use(CellGroup)
Vue.use(Button)
Vue.use(Icon)
Vue.use(Col)
Vue.use(Row)
Vue.use(Divider)
Vue.use(Toast)
Vue.use(DatetimePicker)
Vue.use(Popup)
Vue.use(Picker)
Vue.use(NumberKeyboard)
Vue.use(Dialog)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
// Vue.use(store)
Vue.use(Notify)

Vue.config.productionTip = false



/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})
